<script setup lang="ts">
import type { ScheduleScheme } from '@/types'

defineProps<{
  data: ScheduleScheme['team']
}>()
</script>

<template>
  <div class="clearfix team">
    <div v-for="(team, index) in data" :key="index" class="team-item">
      <ElTag>{{ team.name }}</ElTag>
    </div>
  </div>
</template>

<style scoped>
.team {
  margin: 0;
  transform: translateY(5px);
  padding-left: 20px;
}
.team-item {
  font-size: 12px;
  text-align: left;
  margin-bottom: 10px;
  margin-right: 10px;
  float: left;
}
.team-item:last-child {
  margin-right: 0;
}
</style>
